<!DOCTYPE html>

<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>

<body>
    <!-- 这条信息仅用于测试 -->
    csrf = <%= csrf %>

    <div class="form-container">
        <p class="form-header">登录</p>
        <form action='login' , method='POST' , align='center'>
            <!-- 这个隐藏的 _csrf 用于 koa-csrf -->
            <input type="hidden" name="_csrf" value="<%= csrf %>" />

            <table>
                <tr>
                    <td>
                        <label>账号：</label>
                    </td>
                    <td>
                        <input id="user" name='login_username' placeholder="User Name">
                    </td>
                </tr>

                <tr>
                    <td>
                        <label>密码：</label>
                    </td>
                    <td>
                        <input id="pwd" type='password' , name='login_password' placeholder="password">
                    </td>
                </tr>
                <tr>
                    <td colspan='2' , align='right'>
                        <input type='submit' , value='登录'>
                    </td>
                </tr>
            </table>
        </form>

        <!-- 错误提示 -->
        <%= errMsg %>
    </div>
</body>